import Vue from 'vue'
import Router from 'vue-router'
import AdminLayout from '@/components/AdminLayout'
Vue.use(Router)
const router =  new Router({
  routes: [
    {
      path: '/login',
      component: () => import('@/components/Login'),
    },{
      path:'/',
      component: AdminLayout,
    },{
      path:"/guanli",//部门菜单信息父路由
      component:AdminLayout,
      children:[
        {
          path: 'user',
          component: () => import('@/components/User'),
          meta: { title: 'Table', icon: 'table' }
        },{
          path: 'emp',
          component: () => import('@/components/Emp'),
          meta: { title: 'Table', icon: 'table' }
        },{
          path: 'technology_meifa',
          component: () => import('@/components/Technology_meifa'),
          meta: { title: 'Table', icon: 'table' }
        },{
          path: 'technology_meirong',
          component: () => import('@/components/Technology_meirong'),
          meta: { title: 'Table', icon: 'table' }
        },{
          path: 'reservation',
          component: () => import('@/components/Reservation'),
          meta: { title: 'Table', icon: 'table' }
        },{
          path: 'subscribeinfo',
          component: () => import('@/components/subscribeinfo'),
          meta: { title: 'Table', icon: 'table' }
        },{
          path: 'card',
          component: () => import('@/components/Card'),
          meta: { title: 'Table', icon: 'table' }
        }]}
  ]
})
export default router
